package com.tc168.cp306.b06.activity;

import android.content.Context;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import com.tc168.cp306.b06.R;

/**
 * Created by Wang-gk on 2017/5/9.
 */

public class MenuFragment extends android.support.v4.app.Fragment {

    private View mView;
    private Context mContext;
    private TextView mTvMenuFragment;

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        mView = inflater.inflate(R.layout.layout_fragment_menu, container, false);
        mContext = getActivity();
        Bundle lBundle = getArguments();
        mTvMenuFragment = (TextView) mView.findViewById(R.id.tv_menu_fragment);
        if (lBundle != null) {
            mTvMenuFragment.setText(lBundle.getString("menu_str"));
        }
        return mView;
    }
}
